home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Communication / NewsBase / Source / common.subproj / Localization.h < prev    next >
Text File  |  1993-01-12  |  1KB  |  34 lines

  1. /* You may freely copy, distribute, and reuse the code in this example.
  2.  * NeXT disclaims any warranty of any kind, expressed or  implied, as to
  3.  * its fitness for any particular use.
  4.  */
  5.  
  6. #import <appkit/Application.h>
  7. #import <defaults/defaults.h>
  8. #import <streams/streams.h>
  9. #import <time.h>
  10.  
  11. #define LocalString(key, value, comment) doLocalString(NULL, key, value)
  12. #define LocalStringFromTable(table, key, value, comment)      \
  13.     doLocalString(#table, key, value)
  14.  
  15. extern id LoadLocalNib(const char *nibFile, id owner,
  16.                 BOOL withName,NXZone *zone);
  17. extern NXStream *LocalMapFile(const char *file, int flag);
  18.  
  19. extern id LocalImage(const char *file);
  20.  
  21. extern void InitLocalDateAndTime();
  22.  
  23. extern void LocalDateAndTime(char *buffer,int  maxBufferSize, const time_t *time);
  24. extern void LocalDate(char *buffer,int  maxBufferSize, const time_t *time);
  25. extern void LocalTime(char *buffer,int maxBufferSize, const time_t *time);
  26.  
  27. extern const char *doLocalString(const char *stringTable, 
  28.                                  const char *key, 
  29.                                  const char *value);
  30.  
  31. /* Methods specific to AskMe app */
  32. extern void getAppDirectory(char *appDirectory);
  33. extern const char *findLocalDir();
  34.